package com.school.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.school.entity.HljtClassimage;
import com.school.entity.HljtClassnotify;
@Repository
public interface HljtClassnotifyDao {
	/**
	 * 通过班级id和type查找班级通知
	 * @param classId
	 * @param type
	 * @return
	 */
	public List<HljtClassnotify> findNotity(@Param(value="classid") Integer classId,@Param(value="type") String type);
	
	/**
	 * 通过班级id和type查找班级通知集合
	 * @param classId
	 * @param type
	 * @return
	 */
	public List<HljtClassnotify> findNotityList(@Param(value="classid") Integer classId,@Param(value="type") String type);
	/**
	 * 通过班级id和type查找班级通知集合
	 * @param classId
	 * @param type
	 * @return
	 */
	public List<HljtClassnotify> findNotityLists(@Param(value="classid") Integer classId,@Param(value="type") String type,@Param(value="pageSize") Integer pageSize,@Param(value="pageIndex") Integer pageIndex);
	/**
	 * 通过id删除通知
	 * @param id
	 * @return
	 */
	public Integer deletewisdom(Integer id);
	/**
	 * 添加通知
	 * @return
	 */
	public Integer addwisdom(HljtClassnotify Classnotify);
	/**
	 * 修改通知
	 * @param Classnotify
	 * @return
	 */
	public Integer updatewisdom(HljtClassnotify Classnotify);
	/**
	 * 模糊分页查询
	 * @param pageSize
	 * @param pageIndex
	 * @param Classimage
	 * @return
	 */
	public List<HljtClassnotify> findListImagelikepage(@Param(value="title")String title,@Param(value="pageSize")Integer pageSize,@Param(value="pageIndex")Integer  pageIndex,@Param(value="classid")Integer classid, @Param(value="type")String type);
	/**
	 * 模糊查询
	 * @return
	 */
	public List<HljtClassnotify> findclassimage(@Param(value="title") String title,@Param(value="classid")Integer classid, @Param(value="type")String type);


	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
